package com.ftf.tp.user.application.assembler;

import com.ftf.tp.user.application.dto.TpUserDTO;
import com.ftf.tp.user.application.vo.UserInfoVO;
import com.ftf.tp.user.domain.data.dos.TpUserDO;
import com.ftf.tp.user.domain.data.dos.UserInfoDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author tanghao
 * @date 2022/8/1
 */
@Mapper
public interface UserAssembler {

    UserAssembler INSTANCE = Mappers.getMapper(UserAssembler.class);

    UserInfoVO doToVo(TpUserDO userInfo);

    TpUserDTO doToDto(TpUserDO userDO);
}

